﻿#if UNITY_EDITOR
using System;
using System.Collections.Generic;
using LZX.Main.HotUpdate.ResourceData;
namespace LZX.MEditor.Enum
{
    public static class LoadStatuHelper
    {
        public static LoadStatu Statu;
        public static Action<string, string> OnLoadAsset;
        public static Action<string, string> OnUnLoadAsset;
        public static Action<string, bool> OnUnLoadBundle;
        public static Dictionary<string,BundleData> LoadedBundles = new Dictionary<string, BundleData>();
        public static Dictionary<string, AssetData> LoadedAssets = new Dictionary<string, AssetData>();
        public static void RegiterUnLoadBundle(Action<string, bool> onUnLoadBundle)
        {
            OnUnLoadBundle += onUnLoadBundle;
        }
        public static void UnRegiterUnLoadBundle(Action<string, bool> onUnLoadBundle)
        {
            OnUnLoadBundle -= onUnLoadBundle;
        }
        public static void RegiterLoadAsset(Action<string, string> onLoadAsset)
        {
            OnLoadAsset += onLoadAsset;
        }
        public static void UnRegiterLoadAsset(Action<string, string> onLoadAsset)
        {
            OnLoadAsset -= onLoadAsset;
        }
        public static void RegiterUnLoadAsset(Action<string, string> onUnLoadAsset)
        {
            OnUnLoadAsset += onUnLoadAsset;
        }
        public static void UnRegiterUnLoadAsset(Action<string, string> onUnLoadAsset)
        {
            OnUnLoadAsset -= onUnLoadAsset;
        }
    }
    public enum LoadStatu
    {
        DEFAULT = 0,
        SIMULATION = 1
    }
}
#endif